import request from "../utils/request";

export function getQuestion(id){
    return request({
        method: 'GET',
        url: '/getQuestion/'+id,
      })
}

export function getQuestionList(userId){
    return request({
        method: 'GET',
        url: '/getQuestionList/'+userId,
      })
}

export function queryQuestion(data){
  return request({
      method: 'POST',
      url: '/queryQuestion',
      data:data
    })
}

export function saveQuestion(data){
    return request({
        method: 'POST',
        url: '/saveQuestion',
        data:data
      })
}

export function modQuestion(data){
    return request({
        method: 'POST',
        url: '/modQuestion',
        data:data
      })
}

export function delQuestion(id){
    return request({
        method: 'GET',
        url: '/delQuestion/'+id,
      })
}

